package org.zxp.esclientrhlstarter;

import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;
import org.zxp.esclientrhl.annotation.EnableESTools;
import org.zxp.esclientrhl.config.ElasticSearchConfiguration;
import org.zxp.esclientrhl.index.ElasticsearchIndexImpl;
import org.zxp.esclientrhl.repository.ElasticsearchTemplateImpl;

/**
 * @program: esclientrhl
 * @description: ${description}
 * @author: X-Pacific zhang
 * @create: 2019-04-16 11:18
 **/
@Configuration
@ConditionalOnClass({ElasticsearchTemplateImpl.class, ElasticsearchIndexImpl.class})
@ConditionalOnMissingBean({ElasticsearchTemplateImpl.class, ElasticsearchIndexImpl.class})
@ConditionalOnProperty
(
        prefix = "elasticsearch",
        value = "host"
)
@EnableESTools
public class EsClientRHLAutoConfiguration {
}
